import type { Route } from '../index.type'
import Layout from '@/layout/index.vue'
import { createNameComponent } from '../createNode'
const route: Route[] = [
  {
    path: '/groupController',
    component: Layout,
    //vue路由中，子路由的地址，对应的组件渲染在副路由的 router-view 处
    redirect: '/groupController/index',//点击父级路由，默认选中的子路由
    meta: { title: '抖音获客', icon: 'sfont system-document' },
    children: [
      // type:index,video
      {
        path: 'index',
        component: createNameComponent(() => import('@/views/ydy/groupController/index.vue')),
        meta: { title: '群控管理' }
      }
    ]
  },
  {
    path: '/ydy',
    component: Layout,
    //vue路由中，子路由的地址，对应的组件渲染在副路由的 router-view 处
    redirect: '/ydy/mainPage/index',//点击父级路由，默认选中的子路由
    meta: { title: '抖音获客', icon: 'sfont system-document' },
    children: [
      // type:index,video
      {
        path: 'index',
        component: createNameComponent(() => import('@/views/ydy/mainPage/index.vue')),
        meta: { title: '主页任务', type: 'index' }
      },
      {
        path: 'video',
        component: createNameComponent(() => import('@/views/ydy/mainPage/index.vue')),
        meta: { title: '精准视频任务', type: 'video' }
      },
      //{
      //   path: 'alreadyVideo',
      //   component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
      //   meta: { title: '已检索视频' }
      //
      // },
      // {
      //   path: 'city',
      //   component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
      //   meta: { title: '同城任务' }
      // },
      {
        path: 'customerList',
        component: createNameComponent(() => import('@/views/ydy/customerList/index.vue')),
        meta: { title: '评论列表' }
      },
    ]
  },
  //============微信视频号=============

  {
    path: '/ywx',
    component: Layout,
    //vue路由中，子路由的地址，对应的组件渲染在副路由的 router-view 处
    redirect: '/ywx/index',//点击父级路由，默认选中的子路由
    meta: { title: '微信视频号', icon: 'sfont system-document' },
    children: [
      {
        path: 'index',
        component: createNameComponent(() => import('@/views/ywx/yh/index.vue')),
        meta: { title: '养号' }
      },
      {
        path: 'set',
        component: createNameComponent(() => import('@/views/ywx/set/index.vue')),
        meta: { title: '设置' }
      }
    ]
  },


  //快手
  // {
  //   path: '/yks',
  //   component: Layout,
  //   //vue路由中，子路由的地址，对应的组件渲染在副路由的 router-view 处
  //   redirect: '/yks/index',//点击父级路由，默认选中的子路由
  //   meta: { title: '快手获客', icon: 'sfont system-document' },
  //   children: [
  //     {
  //       path: 'index',
  //       component: createNameComponent(() => import('@/views/yuange/index.vue')),
  //       meta: { title: '主页任务' }
  //     },
  //     {
  //       path: 'video',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '精准视频任务' }
  //     },
  //     {
  //       path: 'alreadyVideo',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '已检索视频' }
  //     },
  //     {
  //       path: 'customerList',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '客户库' }
  //     },
  //     {
  //       path: 'city',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '同城任务' }
  //     },
  //   ]
  // },
  //小红书
  // {
  //   path: '/yxhs',
  //   component: Layout,
  //   //vue路由中，子路由的地址，对应的组件渲染在副路由的 router-view 处
  //   redirect: '/yxhs/index',//点击父级路由，默认选中的子路由
  //   meta: { title: '小红书获客', icon: 'sfont system-document' },
  //   children: [
  //     {
  //       path: 'index',
  //       component: createNameComponent(() => import('@/views/yuange/index.vue')),
  //       meta: { title: '主页任务' }
  //     },
  //     {
  //       path: 'video',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '精准视频任务' }
  //     },
  //     {
  //       path: 'alreadyVideo',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '已检索视频' }
  //     },
  //     {
  //       path: 'customerList',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '客户库' }
  //     },
  //     {
  //       path: 'city',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '同城任务' }
  //     },
  //   ]
  // },

  //bilibili b站
  // {
  //   path: '/ybz',
  //   component: Layout,
  //   //vue路由中，子路由的地址，对应的组件渲染在副路由的 router-view 处
  //   redirect: '/yks/index',//点击父级路由，默认选中的子路由
  //   meta: { title: 'B站获客', icon: 'sfont system-document' },
  //   children: [
  //     {
  //       path: 'index',
  //       component: createNameComponent(() => import('@/views/yuange/index.vue')),
  //       meta: { title: '主页任务' }
  //     },
  //     {
  //       path: 'video',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '精准视频任务' }
  //     },
  //     {
  //       path: 'alreadyVideo',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '已检索视频' }
  //     },
  //     {
  //       path: 'customerList',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '客户库' }
  //     },
  //     {
  //       path: 'city',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '同城任务' }
  //     },

  //   ]
  // },
  //百度贴吧获客
  // {
  //   path: '/ytb',
  //   component: Layout,
  //   //vue路由中，子路由的地址，对应的组件渲染在副路由的 router-view 处
  //   redirect: '/yks/index',//点击父级路由，默认选中的子路由
  //   meta: { title: '百度贴吧获客', icon: 'sfont system-document' },
  //   children: [
  //     {
  //       path: 'index',
  //       component: createNameComponent(() => import('@/views/yuange/index.vue')),
  //       meta: { title: '主页任务' }
  //     },
  //     {
  //       path: 'video',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '精准视频任务' }
  //     },
  //     {
  //       path: 'alreadyVideo',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '已检索视频' }
  //     },
  //     {
  //       path: 'customerList',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '客户库' }
  //     },
  //     {
  //       path: 'city',
  //       component: createNameComponent(() => import('@/views/main/ytest/index.vue')),
  //       meta: { title: '同城任务' }
  //     },

  //   ]
  // },
  {
    path: '/yset',
    component: Layout,
    //vue路由中，子路由的地址，对应的组件渲染在副路由的 router-view 处
    redirect: '/yset/index',//点击父级路由，默认选中的子路由
    meta: { title: '系统设置', icon: 'sfont system-document' },
    children: [
      {
        path: 'index',
        component: createNameComponent(() => import('@/views/set/primaryKey/index.vue')),
        meta: { title: '关键词设置' }
      },
      {
        path: 'response',
        component: createNameComponent(() => import('@/views/set/response/index.vue')),
        meta: { title: '私信内容设置' }
      },
      {
        path: 'person',
        component: createNameComponent(() => import('@/views/yuange/index.vue')),
        meta: { title: '人员设置' }
      },
    ]
  }

]
export default route